<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset={CHARSET}"/>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" >
<title>$navtitle</title>
<meta name="description" content="$metakeywords" /> 
<meta name="keywords" content="$metadescription" />
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/base.css" />
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/module.css" />
{template aljbd:common}
<script src="source/plugin/aljbd/js/jquery.js"></script>
<script type="text/javascript">
    var jq = jQuery.noConflict();
</script>
<script src="source/plugin/aljbd/js/sj/jquery.plugin.js"></script>
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/plugin.css" />
</head>
<body id="body">
<a name="top"></a>
{template aljbd:header}
<style type="text/css">
	.panel-default > .panel-heading, .panel-default > .panel-footer {
    border-color: #eee;
    background: #ffffff;
}
</style>
<div class="container module-article" id="mobile_body"><div class="panel-comm panel-default panel-fullsize">
    <div class="panel-heading">
        <div class="fr">
            <a href="javascript:;" id="filter_btn">
                <span class="label-comm label-mycolor label-big">{lang aljbd:sj_list_notice_1}</span>
            </a>
        </div>
        <h3>{lang aljbd:sj_list_notice_2}</h3>
    </div>
</div>
    {if $settings['aljad_nlist_top']['value']}
    <div style="width:100%; height:auto;" class="aljbd_ad">
        {eval echo htmlspecialchars_decode($settings['aljad_nlist_top']['value']);}
    </div>
    {/if}
{if $settings['mobile_list_notice_ad_1']['value']}
<div style="width:100%; height:auto;" class="aljbd_ad">
   {eval echo htmlspecialchars_decode($settings['mobile_list_notice_ad_1']['value']);}
</div>
{/if}
<div class="list-group list-group-insertmod" id="data_container">
{loop $nlist $n} 
{eval $bd_list = C::t('#aljbd#aljbd')->fetch($n['bid']);}
<a href="plugin.php?id=aljbd&act=noticeview&bid={$n['bid']}&nid=$n['id']" class="list-group-item">
    <!--{if file_exists('source/plugin/aljhb/aljhb.inc.php')}-->
    {eval $hb_count = DB::result_first('select count(*) from %t where hid=%d and pluginid=%s and module=%s',array('aljhb_count',$n['id'],'aljbd','notice'));}
    {if $hb_count}
    <img src="source/plugin/aljhb/static/img/hb_icon.png" class="swing" style="width:20px;position: absolute;left:2px;top:2px;">
    {/if}
    <!--{/if}-->
    <div class="richtxt-comm richtxt-img-defaultsize">
        <div class="fl" style="min-width:80px;">
            <img {if $settings['is_lazyload']['value']}src="$loading" data-original="{if $n['pic']}$n['pic']{else}{if $bd_list[logo]}$bd_list[logo]{else}source/plugin/aljbd/images/noimg.gif{/if}{/if}"{else}src="{if $n['pic']}$n['pic']{else}{if $bd_list[logo]}$bd_list[logo]{else}source/plugin/aljbd/images/noimg.gif{/if}{/if}"{/if} alt="" class="richtxt-img">
        </div>
        <div class="richtxt-body">
            <h4>$n['subject']</h4>
            <p class="txt-comm txt-small txt grey">
                {eval echo cutstr(strip_tags(preg_replace('/\<img.*?\>/is', '', $n['content'])),200);}            </p>
        </div>
    </div>
</a>
{/loop}
<div data-name="pagination" class="pagination page-mode-default">$paging</div></div>
<div id="page_container" class="mb10"></div>
<div class="panel-comm panel-default" id="filter_box">
    <div class="panel-heading">{lang aljbd:sj_list_notice_1}</div>
    <div class="panel-body">
        <div class="form-box">
           <form id="postform" name="postform" action="plugin.php?id=aljbd&act=nlist" method="POST" accept-charset="{CHARSET}">
                <input type="hidden" name="formhash" value="{FORMHASH}">
                <div class="form-item">
                    <label for="catid">{lang aljbd:sj_list_notice_3}</label>
                    <select name="type" id="type" style="width:120px;" data-id="1" onchange="getregion(this,'notice')">
							<option value="">{lang aljbd:s224}</option>
							<!--{loop $tlist $typeid $type}-->
							<option value="$typeid" >$type['subject']</option>
							<!--{/loop}-->
						</select>
						
						
                    <div class="clear"></div>
                </div>
				<div class="form-item">
                    <span name="subtype" id="subtype">
						
						</span>
						
						
                    <div class="clear"></div>
                </div>
				
                <div class="form-item">
                    <label for="keyword">{lang aljbd:sj_list_notice_4}</label>
                    <input type="text" name="kw" id="keyword" value="$_GET['kw']" x-webkit-speech="x-webkit-speech">
                </div>
                <div class="form-submit">
                    <button type="submit" value="Y" name="dosubmit" class="btn btn-mycolor full-width">{lang aljbd:sj_list_notice_5}</button>
                </div>
            </form>
        </div>
    </div>
</div>
    <script type="text/javascript">
        function getregion(t,u){
            var url ='';
            if(u){
                url = '&type='+u;
            }
            if(u !='u'){
                var name = 'subtype3';
                if(jq(t).attr('data-id') == 1){
                    var name = 'subtype';
                }
            }else{
                var name = 'region1';
                if(jq(t).attr('data-id') == 1){
                    var name = 'subregion';
                }
            }
            var str = '<select name="'+name+'" onchange="getregion(this,\''+u+'\')" style="width:120px;"><option value="">\u8bf7\u9009\u62e9</option>';
            jq.post('plugin.php?id=$pluginid&act=linkage&upid='+jq(t).val()+url,function(data){
                if(data){
                    jq.each(data,function(k,d){
                        str+='<option value="'+k+'">'+d+'</option>';
                    });
                    str+='</select>';
                    jq(t).next().remove();
                    jq(t).after(str);
                }

            }, "json");
        }
    </script>
<script>
jq(function() {
    new jq.m_drawer('#filter_box', {}, {
        onInit:function(obj, workArea) {
            jq('#filter_btn').click(function() {
                obj.open();
                return false;
            });         
        }
    });

});
</script>
</div>
{if $settings['mobile_list_notice_ad_2']['value']}
<div style="width:100%; height:auto;" class="aljbd_ad">{eval echo htmlspecialchars_decode($settings['mobile_list_notice_ad_2']['value']);}</div>
{/if}
{template aljbd:footer}
</body>
</html>